# -*- mode: python ; coding: utf-8 -*-

from PyInstaller.utils.hooks import collect_data_files
from PyInstaller.utils.hooks import copy_metadata


a = Analysis(
    ['run.py'],
    pathex=[],
    binaries=[
        ('ffmpeg/bin/ffmpeg.exe', 'ffmpeg/bin'),
        ('ffmpeg/bin/ffplay.exe', 'ffmpeg/bin'),
        ('ffmpeg/bin/ffprobe.exe', 'ffmpeg/bin'),
        ('ffmpeg/bin/run.bat', 'ffmpeg/bin')
    ],
    datas=[
        ('app.py', '.'),
        ('image', 'image'),
        ('video', 'video'),
        ('webm', 'webm')
    ] + collect_data_files('streamlit') + copy_metadata('streamlit') + [('k:\\gitcode\\mp42webm\\.venv\\Lib\\site-packages\\streamlit\\runtime', './streamlit/runtime')],
    hiddenimports=['streamlit', 'PIL', 'hashlib', 'shutil', 'subprocess', 'datetime', 'tempfile', 'glob', 'pathlib', 're'],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
    name='run',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
coll = COLLECT(
    exe,
    a.binaries,
    a.datas,
    strip=False,
    upx=True,
    upx_exclude=[],
    name='run',
)
